﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICSharpCode.Core;
using System.Windows;
using Caliburn.Micro;
using Agnes.Core;

namespace Agnes.Mainframe
{
    public class MainframeCmd : AbstractCommand 
    {
        public override void Run()
        {
            AgnesServiceManager.LogServ.Info("初始化界面框架 ... ... ");
             

            AppBootstrapper boot = new AppBootstrapper();
          /*  MainWinViewModel vm = new MainWinViewModel(new MainWinModel());*/
            Application app = new Application();
            app.StartupUri = new Uri("pack://application:,,,/Agnes.Mainframe;Component/MainWindow.xaml");
            Uri locateduri = new Uri("pack://application:,,,/Agnes.Mainframe;Component/MainframeResource.xaml");
            app.Resources.Source = locateduri;
            app.Run();
            AgnesServiceManager.LogServ.Info("主窗体已经关闭，系统已经关闭... ...");
        }
    }
}
